package com.vpclub.service;

import com.vpclub.bean.Teacher;
import com.vpclub.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : leimingchao
 * @date Date : 2021年08月08日 1:51
 */
@Service
public class TeacherService {

    // @Autowired
    // private SqlSessionFactory sqlSessionFactory;

    @Autowired
    private TeacherDao teacherDao;

    public void hahaha() {

    }

    public Teacher getTeacher(int id) {
        return teacherDao.getTeacherById(id);
    }

    public List<Teacher> getTeachers() {
        return teacherDao.getTeachers();
    }
}
